package cn.rongdao.jrkabao.model.message;

import com.mifengkong.frtools.http.request.HttpFunction;

import cn.rongdao.jrkabao.bean.message.ReadPointBean;
import cn.rongdao.jrkabao.model.api.BaseKaMaoModel;
import io.reactivex.Observable;
import io.reactivex.Observer;

/**
 * Created by jack on 2017/8/21
 */

public class ReadPointModel extends BaseKaMaoModel {

    public static ReadPointModel getInstance() {
        return getPresent(ReadPointModel.class);
    }

    public void execute(Observer<ReadPointBean> observer) {
        Observable<ReadPointBean> observable = mServletApi.getReadPoint(mParams).map(new HttpFunction<ReadPointBean>());
        toSubscribe(observable, observer);
    }
}
